<?php


//
// Standard function to get the PageRank of a given -website (page)-
//
//require_once("pagerank/pagerank32_script.php");
require_once("pagerank32_script.php");

$x_url		= "";
$pr_rank	= "-1";

if( isset($_GET['url']) && $_GET['url'] != "" ) {
	$x_url		= $_GET['url'];
	$myRank		= new PageRankXor32();
	$pr_rank	= $myRank->getRank( $x_url );
}

print($pr_rank);
/*
print("   <br>\nurl=".$x_url);
print("   <br>\nwd=".getcwd());
print("   <br>\nmyRank=".$myRank);
*/
?>
